package com.gccloud.tgyfirst.demo.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.gccloud.starter.plugins.validator.group.Update;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 抽象出来的类
 *
 * @author qianxing
 * @version 1.0
 * @date 2021/5/17 14:06
 */
@Data
public class CourseCommon {

    @ApiModelProperty(notes = "主键")
    @NotBlank(message = "ID不能为空", groups = {Update.class})
    private String id;

    @ApiModelProperty(notes = "课程名称")
    private String name;

    @ApiModelProperty(notes = "授课教师名称")
    private String teacherName;

    @ApiModelProperty(notes = "课程开始时间")
    private Date startDate;

    @ApiModelProperty(notes = "课程结束时间")
    private Date endDate;
}
